package com.hackerrank.contests.feb14.challenges.sherlockandwatson;

import java.util.Scanner;

public class Solution {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int N = in.nextInt(), K = in.nextInt(), Q = in.nextInt(), a[] = new int[N];
		for(int i = 0; i < N; i++)
			a[i] = in.nextInt();
		for(int i = 0; i < Q; i++) {
			int ind = in.nextInt() - K % N;
			while(ind < 0)
				ind += N;
			System.out.println(a[ind]);
		}
	}
}
